package com.itheima.cases.multi_thread;

public class Test {
    public static void main(String[] args) {
        // 新线程
        final Thread thread = new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                System.out.println("新线程" + i);
            }
        });

        thread.start();

        for (int i = 0; i < 10; i++) {
            System.out.println("主线程" + i);
        }
    }
}
